/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package espe.ccsoft.models;

import espe.ccsoft.models.clavesforaneas.AccionRolPK;
import java.io.Serializable;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;

@Entity
public class AccionRol implements Serializable{
    @EmbeddedId
    private AccionRolPK accionrol;

    public AccionRolPK getAccionrol() {
        return accionrol;
    }

    public void setAccionrol(AccionRolPK accionrol) {
        this.accionrol = accionrol;
    }
    
    public void setAccionrol(int id_accion, int id_rol) {
        this.accionrol = new AccionRolPK(id_accion,id_rol);
    }
}
